﻿<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>admin</title>
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
	<link rel="stylesheet" type="text/css" href="~/themes/kingcens/css/reset.css">
	<link rel="stylesheet" type="text/css" href="~/themes/kingcens/css/style.css">
    <style>
        body {
            overflow-y: scroll !important;
        }
        a:link {color: black !important}
        a:visited {color: black !important}
        a:hover {color: black !important} 
        a:active {color: black !important}

        .renewal {
            width: 1874px;
            height: 39px;
            margin-left: 8px;
            margin-top: 17px;
            background-color: #fff;
            padding: 8px 0 7px 0;
            display:none;
        }
        .ren-box {
            width: 50%;
            height: 39px;
            margin-left: 36px;
          
        }
        .ren-box img {
            width: 26px;
            height: 26px;
            margin-top: 5px;
            margin-left: 12px;
            margin-right: 5px;
            float: left;
        }
        .merchant {
            height: 39px;
            line-height: 39px;
            text-align: center;
            float: left;
        }
        .merchant span {
            font-size: 14px;
            color: #222;
            margin: 0 5px;
        }
        #renewal {
            width: 102px;
            height: 37px;
            color: #fff;
            font-size: 16px;
            text-align: center;
            float: right;
            background-color: #FF3334;
            border-radius: 4px;
            border: none;
            cursor: pointer;
        }
        /*.commonly-title span {
            font-size: 14px;
            padding: 5px;
            cursor: pointer;
        }

            .commonly-title span:hover {
                color: #0094ff;
            }

        .commonly-active {
            border-bottom: 2px solid #0094ff;
        }*/
    </style>

</head>
<body>
    <div class="min delBj">
        <div class="renewal">
            <div class="ren-box">
                <img src="../../Images/renewal.png" />
                <div class="merchant">
                    <span>商户编号:<span id="Number"></span></span>
                    <span>有效期至: <span id="date"></span></span>
                    <span>可用:<span id="days"></span>天</span>
                </div>
                <input id="renewal" type="buttom" value="我要续费" readonly />
            </div>
        </div>
        <div class="content-wrapper"style="">
            <div class="like-bd">
                <h2 class="u-title">待处理</h2>
                <div class="like-item overall clearfix">
                    <div class="mobile-block">
                        <div class="fi-contain-list list1 clearfix" onclick="gotoTabs(1)" style="cursor:pointer;">
                            <div class="contain-hd">
                                <div class="contain-cnetent">
                                    <p><span class="price">未日结数</span></p>
                                    <p id="FNewBill_Pos" class="size">0</p>
                                </div>
                                <div class="icom_right"><img src="~/themes/kingcens/images/stati1.png" alt=""></div>
                            </div>
                        </div>
                    </div>
                    <div class="mobile-block">
                        <div class="fi-contain-list list2 clearfix" onclick="gotoTabs(2)" style="cursor:pointer;">
                            <div class="contain-hd">
                                <div class="contain-cnetent">
                                    <p><span class="price">未审核入库</span></p>
                                    <p id="FNewBill_Pur" class="size">0</p>
                                </div>
                                <div class="icom_right"><img src="~/themes/kingcens/images/stati2.png" alt=""></div>
                            </div>
                        </div>
                    </div>
                    <div class="mobile-block">
                        <div class="fi-contain-list list3 clearfix" onclick="gotoTabs(3)" style="cursor:pointer;">
                            <div class="contain-hd">
                                <div class="contain-cnetent">
                                    <p><span class="price">未审核电商订单</span></p>
                                    <p id="FNewBill_Sel" class="size">0.00</p>
                                </div>
                                <div class="icom_right"><img src="~/themes/kingcens/images/stati3.png" alt=""></div>
                            </div>
                        </div>
                    </div>
                    <div class="mobile-block">
                        <div class="fi-contain-list list4 clearfix" onclick="gotoTabs(4)" style="cursor:pointer;">
                            <div class="contain-hd">
                                <div class="contain-cnetent">
                                    <p><span class="price">经营助手</span></p>
                                    <p id="FNewBill_Mall" class="size">随时随地查询营业数据，管理店铺更轻松。</p>
                                </div>
                                <div class="icom_right"><img src="~/themes/kingcens/images/stati41.png" alt=""></div>
                            </div>
                        </div>
                    </div>
                </div>
                <h2 class="u-title">销售对比</h2>
                <div class="like-item like-overall clearfix">
                    <div class="mobile-block">
                        <div class="fi-contain-list list1 clearfix" onclick="gotoTabs(5)" style="cursor:pointer;">
                            <div class="contain-hd">
                                <h2 class="contain-title">零售</h2>
                                <div class="contain-cnetent">
                                    <p>今天:<span id="FPosAmt_Today" class="price">0.00</span>元</p>
                                    <p>昨天:<span id="FPosAmt_Ytday" class="price">0.00</span>元</p>
                                </div>
                            </div>
                            <div class="contain-foot">
                                <p>本周:<span id="FPosAmt_TsWeek" class="price">0.00</span>元</p>
                                <p>本月:<span id="FPosAmt_TsMonth" class="price">0.00</span>元</p>
                            </div>
                        </div>
                    </div>
                    <div class="mobile-block">
                        <div class="fi-contain-list list2 clearfix" onclick="gotoTabs(6)" style="cursor:pointer;">
                            <div class="contain-hd">
                                <h2 class="contain-title">批发</h2>
                                <div class="contain-cnetent">
                                    <p>今天:<span id="FSelAmt_Today" class="price">0.00</span>元</p>
                                    <p>昨天:<span id="FSelAmt_Ytday" class="price">0.00</span>元</p>
                                </div>
                            </div>
                            <div class="contain-foot">
                                <p>本周:<span id="FSelAmt_TsWeek" class="price">0.00</span>元</p>
                                <p>本月:<span id="FSelAmt_TsMonth" class="price">0.00</span>元</p>
                            </div>
                        </div>
                    </div>
                    <div class="mobile-block">
                        <div class="fi-contain-list list3 clearfix" onclick="gotoTabs(7)" style="cursor:pointer;">
                            <div class="contain-hd">
                                <h2 class="contain-title">电商</h2>
                                <div class="contain-cnetent">
                                    <p>今天:<span id="FMallAmt_Today" class="price">0.00</span>元</p>
                                    <p>昨天:<span id="FMallAmt_Ytday" class="price">0.00</span>元</p>
                                </div>
                            </div>
                            <div class="contain-foot">
                                <p>本周:<span id="FMallAmt_TsWeek" class="price">0.00</span>元</p>
                                <p>本月:<span id="FMallAmt_TsMonth" class="price">0.00</span>元</p>
                            </div>
                        </div>
                    </div>
                    <div class="mobile-block">
                        <div class="fi-contain-list list4 clearfix" style="cursor:pointer;">
                            <div class="contain-hd">
                                <h2 class="contain-title">总销售</h2>
                                <div class="contain-cnetent">
                                    <p>今天:<span id="FAllAmt_Today" class="price">0.00</span>元</p>
                                    <p>昨天:<span id="FAllAmt_Ytday" class="price">0.00</span>元</p>
                                </div>
                            </div>
                            <div class="contain-foot">
                                <p>本周:<span id="FAllAmt_TsWeek" class="price">0.00</span>元</p>
                                <p>本月:<span id="FAllAmt_TsMonth" class="price">0.00</span>元</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="like-bd clearfix">
                <div class="row-list row-25" style="margin-bottom: 9px;">
                    <div class="mobile-block">
                        <table id="SaleByGoods" width="100%">
                            <tr><div class="mobile-title"><span class="title"><a href="" onclick="gotoTabs(9)" class="titName">本月商品销售排行</a></span></div></tr>
                            <tbody>
                                <tr class="mobile-hd">
                                    <td>排名</td>
                                    @*<td style="text-align:left">商品编号</td>*@
                                    <td style="text-align:left"> 名称</td>
                                    <td style="text-align:left">数量</td>
                                </tr>
                            </tbody>
                            <tbody>
                                <tr class="mobile-hd delBj">
                                    <td><span class="ranking"></span></td>
                                    <td style="text-align:left"><a href="#" class="link"></a></td>
                                    <td style="text-align:left"></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td><span class="ranking"></span></td>
                                    <td style="text-align:left"><a href="#" class="link"></a></td>
                                    <td style="text-align:left"></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td><span class="ranking"></span></td>
                                    <td style="text-align:left"><a href="#" class="link"></a></td>
                                    <td style="text-align:left"></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td><span class="ranking"></span></td>
                                    <td style="text-align:left"><a href="#" class="link"></a></td>
                                    <td style="text-align:left"></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td><span class="ranking"></span></td>
                                    <td style="text-align:left"><a href="#" class="link"></a></td>
                                    <td style="text-align:left"></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="row-list row-25">
                    <div class="mobile-block">
                        <table id="MemberAnalysis" width="100%">
                            <tr><div class="mobile-title"><span class="title">今日会员分析</span><a class="arr-right"></a></div></tr>
                            <tbody>
                                <tr class="mobile-hd delBj">
                                    <td style='text-align:left;padding-left:30px;'></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="row-list row-25">
                    <div class="mobile-block">
                        <table id="SaleByStock" width="100%">
                            <tr><div class="mobile-title"><span class="title">本月收银分析</span><a class="arr-right"></a></div></tr>
                            <tbody>
                                <tr class="mobile-hd delBj">
                                    <td style='text-align:left;padding-left:30px;'></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="row-list row-25">
                    <div class="mobile-block">
                        <table id="MallNewBill" width="100%">
                            <tr><div class="mobile-title"><span class="title">最新订单</span><a class="arr-right"></a></div></tr>
                            <tbody>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr class="mobile-hd delBj">
                                    <td></td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        @*<div class="commonly" style="width: 250px;float:right;height: 100%;background: #fff">

            <div class="head" style="position: relative;">
                <h2 class="u-title" style="padding-left: 15px;border-bottom: 1px solid rgb(233, 234, 236);">常用功能</h2>
                <span class="commonly-set" style="position: absolute;top: 11px;right: 40px;cursor: pointer;">设置</span>
            </div>
            <div class="commonly-func">
                <div class="commonly-title" style="display: flex;justify-content: space-around;">
                    <span class="commonly-active">基础类</span>
                    <span>业务类</span>
                    <span>报表类</span>
                </div>
                <div class="commonly-content" style="padding: 10px;">
                    <div class="" style="display:block">
                        <p style="line-height: 25px;font-size:14px;margin-bottom:5px;">广州分公司:2020-12-22</p>
                        <p style="line-height: 25px;font-size:14px;margin-bottom:5px;">广州分公司:2020-12-22</p>
                        <p style="line-height: 25px;font-size:14px;margin-bottom:5px;">广州分公司:2020-12-22</p>
                    </div>
                    <div class="" style="display:none">
                        <p style="line-height: 25px;font-size:14px;margin-bottom:5px;">深圳分公司:2020-12-22</p>
                        <p style="line-height: 25px;font-size:14px;margin-bottom:5px;">深圳分公司:2020-12-22</p>
                        <p style="line-height: 25px;font-size:14px;margin-bottom:5px;">深圳分公司:2020-12-22</p>
                    </div>
                    <div class="" style="display:none">
                        <p style="line-height: 25px;font-size:14px;margin-bottom:5px;">东莞分公司:2020-12-22</p>
                        <p style="line-height: 25px;font-size:14px;margin-bottom:5px;">东莞分公司:2020-12-22</p>
                        <p style="line-height: 25px;font-size:14px;margin-bottom:5px;">东莞分公司:2020-12-22</p>
                    </div>
                </div>
            </div>
        </div>*@
    </div>

@*    <div class="footer">
        <div class="foot-alter clearfix" style="width:100%;">
        <div style="width:50%; float:left;padding-left:80px;">
			<p class="name">客服热线: 400-965-5003，13822132867</p>
        </div>
        <div style="float:right;">
			<p class="name">广州博亚诚电子科技有限公司</p>
			<p class="link">官方网址:<a href="http://www.bycpos.com" target="_blank">http://www.bycpos.com</a></p>
        </div>
    </div>*@

<div class="footer">
        <div class="foot-alter clearfix" style="width:100%;">
        <div style="width:50%; float:left;padding-left:80px;">
			<p class="name">@ViewBag.hotline</p>
        </div>
        <div style="float:right;">
			<p class="name">@ViewBag.present</p>
			<p class="link">官方网址:<a href="@ViewBag.url" target="_blank">@ViewBag.url</a></p>
        </div>
    </div>


</div>
</body>
<script type="text/javascript" src="~/themes/kingcens/js/jquery-1.7.2.min.js"></script>
<script>
    $(".site-nav-list .site-nav-menu").on("mouseover", function () {
        $(this).find(".nav-menu-hd").addClass("pull-active").parent().siblings().find(".nav-menu-hd").removeClass("pull-active");
        $(this).find(".service").show().parent().siblings().find(".service").hide();
        $(".nav-menu-list .J_cat").on("mouseover", function () {
            $(this).addClass("pull-active").siblings().removeClass("pull-active");
            $(this).find(".service-float-item").show().parent().siblings().find(".service-float-item").hide();

        });
    });
    $(".site-nav-list .site-nav-menu").on("mouseout", function () {
        $(this).find(".nav-menu-hd").removeClass("pull-active");
        $(this).find(".service, .service-float-item").hide();
    });

</script>

<script>
    mini.parse();

    $(function () {
        $("#renewal").click(function () {
            //parent.window.showTabById('Terminal', '充值续费', '../System/Terminal');
            parent.window.showTabById("Terminal", "充值续费", "../AppCenter/Terminal?FSystemAppID=" + parent.window.getSystemAppID());
        });
        getlistdata();
   });

    function getlistdata() {
        var uID = parent.window.getSystemAppID();
        var mbody = "";
        $.ajax({
            url: '../System/GetDesktopList',
            data: { mydata: uID },
            dataType: 'text',
            async: false,
            type: "post",
            cache: false,
            success: function (text) {
                //debugger;
                var dataR = mini.decode(text);
                console.log(dataR);
                if (dataR.datalist.length > 0) {
                    var mdata = dataR.datalist[0];
                    $("#FNewBill_Pos").html(0); //mdata.FNewBill_Pos.toFixed(2));
                    $("#FNewBill_Pur").html(mdata.FNewBill_Pur.toFixed(2));
                    $("#FNewBill_Sel").html(mdata.FNewBill_Mall.toFixed(2));
                    $("#FPosAmt_Today").html(mdata.FPosAmt_Today.toFixed(2));
                    $("#FPosAmt_Ytday").html(mdata.FPosAmt_Ytday.toFixed(2));
                    $("#FPosAmt_TsWeek").html(mdata.FPosAmt_TsWeek.toFixed(2));
                    $("#FPosAmt_TsMonth").html(mdata.FPosAmt_TsMonth.toFixed(2));
                    $("#FSelAmt_Today").html(mdata.FSelAmt_Today.toFixed(2));
                    $("#FSelAmt_Ytday").html(mdata.FSelAmt_Ytday.toFixed(2));
                    $("#FSelAmt_TsWeek").html(mdata.FSelAmt_TsWeek.toFixed(2));
                    $("#FSelAmt_TsMonth").html(mdata.FSelAmt_TsMonth.toFixed(2));
                    $("#FMallAmt_Today").html(mdata.FMallAmt_Today.toFixed(2));
                    $("#FMallAmt_Ytday").html(mdata.FMallAmt_Ytday.toFixed(2));
                    $("#FMallAmt_TsWeek").html(mdata.FMallAmt_TsWeek.toFixed(2));
                    $("#FMallAmt_TsMonth").html(mdata.FMallAmt_TsMonth.toFixed(2));
                    $("#FAllAmt_Today").html((mdata.FPosAmt_Today + mdata.FSelAmt_Today + mdata.FMallAmt_Today).toFixed(2));
                    $("#FAllAmt_Ytday").html((mdata.FPosAmt_Ytday + mdata.FSelAmt_Ytday + mdata.FMallAmt_Ytday).toFixed(2));
                    $("#FAllAmt_TsWeek").html((mdata.FPosAmt_TsWeek + mdata.FSelAmt_TsWeek + mdata.FMallAmt_TsWeek).toFixed(2));
                    $("#FAllAmt_TsMonth").html((mdata.FPosAmt_TsMonth + mdata.FSelAmt_TsMonth + mdata.FMallAmt_TsMonth).toFixed(2));
                }
                if (dataR.datagood.length > 0) {
                    var mRows1 = dataR.datagood.length;
                    if (mRows1 > 5) mRows1 = 5;
                    for (var i = 0; i < mRows1; i++) {
                        var mRow1 = dataR.datagood[i];
                        mbody = mbody + "<tr class='mobile-hd delBj'>"
                            + "<td><span class='ranking'>" + (i + 1) + "</span></td>"
                            + "<td style='text-align:left'><a class='link'>" + mRow1.FName + "</a></td>"
                            + "<td style='text-align:left'>" + mRow1.FQty.toFixed(2) + "</td></tr>";
                    }
                    for (var j = mRows1; j < 5; j++) {
                        mbody = mbody + "<tr class='mobile-hd delBj'>"
                            + "<td><span class='ranking'>" + (j + 1) + "</span></td>"
                            + "<td style='text-align:left'><a class='link'></a></td>"
                            + "<td style='text-align:left'></td></tr>";
                    }
                    $("#SaleByGoods tbody").eq(2).html(mbody);
                }

                mbody = "";
                if (dataR.datamember.length > 0) {
                    var mRows2 = dataR.datamember.length;
                    for (var k = 0; k < mRows2; k++) {
                        var mRow2 = dataR.datamember[k];
                        mbody = mbody + "<tr class='mobile-hd delBj'><td style='text-align:left;padding-left:30px;'>" + mRow2.FName + "</td><td style='text-align:left'>" + mRow2.FAmount + "</td></tr>";
                    }
                    for (var l = mRows2; l < 6; l++) {
                        mbody = mbody + "<tr class='mobile-hd delBj'><td></td><td></td></tr>";
                    }
                    $("#MemberAnalysis tbody").eq(1).html(mbody);
                }

                mbody = "";
                if (dataR.datastock.length > 0) {
                    var mRows2 = dataR.datastock.length;
                    for (var k = 0; k < mRows2; k++) {
                        var mRow2 = dataR.datastock[k];
                        mbody = mbody + "<tr class='mobile-hd delBj'><td style='text-align:left;padding-left:30px;'>" + mRow2.FName + "</td><td style='text-align:left'>" + mRow2.FAmount.toFixed(2) + "</td></tr>";
                    }
                    for (var l = mRows2; l < 6; l++) {
                        mbody = mbody + "<tr class='mobile-hd delBj'><td></td><td></td></tr>";
                    }
                    $("#SaleByStock tbody").eq(1).html(mbody);
                }

                mbody = "";
                if (dataR.datamallb.length > 0) {
                    var mRows3 = dataR.datamallb.length;
                    for (var m = 0; m < mRows3; m++) {
                        var mRow3 = dataR.datamallb[m];
                        mbody = mbody + "<tr class='mobile-hd delBj'><td style='text-align:left;padding-left:30px;'>" + mRow3.FName + "</td><td style='text-align:left'>" + mRow3.FAmount.toFixed(2) + "</td></tr>";
                    }
                    for (var n = mRows3; n < 6; n++) {
                        mbody = mbody + "<tr class='mobile-hd delBj'><td></td><td></td></tr>";
                    }
                    $("#MallNewBill tbody").eq(1).html(mbody);
                }
                
                if (dataR.datasystem.length > 0) {
                    var mRow_sys = dataR.datasystem[0];
                    if (mRow_sys.FSysState > 0) {
                        $("#Number").text(mRow_sys.FNumber);
                        $("#date").text(mRow_sys.FEndTime);
                        $("#days").text(mRow_sys.FEnddays);
                        $('.renewal').css('display', 'block');
                        SetActionCode();
                    }
                    else {
                        $('.renewal').css('display', 'none');
                    }
                    if (mRow_sys.LoginCount == 1) {
                        SetStockName();
                    }
                    if (mRow_sys.NotifyCount > 0) {
                        NewUpdateInfo();
                    }
                    if (mRow_sys.FChangePsd == 1) {
                        SetChangePsd();
                    }
                }
            },
            fail: function(error){
                alert(error);
            }
        });
    }

    function SetChangePsd() {
        mini.confirm("当前用户为默认密码,为了数据安全，建议更改密码，要现在更改吗?", "提示",
            function (action) {
                if (action == "ok") {
                    SetChangePsdExe();
                }
            }
       );
    }

    function SetChangePsdExe() {
        mini.open({
            url: "/User/EditPwd",
            title: "修改用户密码", width: 430, height: 320,
            onload: function () {
            },
            ondestroy: function (action) {
            }
        });
    }

    function SetActionCode() {
        mini.open({
            url: "/System/SetSysActivation",
            title: "系统激活", width: 720, height: 350,
            onload: function () {
            },
            ondestroy: function (action) {
                if (action == 'Activated')
                    parent.window.Quit();
            }
        });
    }

    function NewUpdateInfo() {
        mini.open({
            url: "/UpdateInfo/Notify?page=0",
            title: "升级公告", width: 800, height: 500,
            onload: function () {
            },
            ondestroy: function (action) {
            }
        });
    }

    function SetStockName() {
        //mini.open({
        //    url: "/System/SetStockName",
        //    title: "默认门店名称编辑", width: 600, height: 380,
        //    onload: function () {
        //    },
        //    ondestroy: function (action) {
        //    }
        //});
    }

    function gotoTabs(index) {
        var modelname = "";
        var modelnameEn = "";
        var modelpath = "";
        switch (index) {
            case 1: modelname = '零售日结'; modelnameEn = 'SetReckoningDay'; modelpath = '../System/SetReckoningDay';
                break;
            case 2: modelname = '采购单据列表'; modelnameEn = 'BllListIns'; modelpath = '../Report/BllListIns?datatype=1&CheckFlag=1&ListType=1';
                break;
            case 3: modelname = '订单列表'; modelnameEn = 'BllListMallOd'; modelpath = '../Report/BllListMallOd?datatype=5&CheckFlag=1';
                break;
            case 4: parent.window.showTabById('Assistant', '经营助手', '../System/Assistant');
                break;
            case 5: modelname = '收银流水查询'; modelnameEn = 'RptPosDataDetail'; modelpath = '../Report/RptPosDataDetail';
                break;
            case 6: modelname = '销售明细查询'; modelnameEn = 'BllDetailOut'; modelpath = '../Report/BllDetailOut?datatype=2';
                break;
            case 7: modelname = '订单明细查询'; modelnameEn = 'RptBllDetailMall'; modelpath = '../Report/BllDetailMall?datatype=7';
                break;
            case 8: modelname = '销售商品汇总表'; modelnameEn = 'RptSaleOrder'; modelpath = '../Report/RptSaleOrder';
                break;
            case 9: modelname = '商品销售排行'; modelnameEn = 'RptPosGoodsSum'; modelpath = '../Report/RptPosGoodsSum';
                break;
        }
        if (index != 4) {
            $.post("../system/Access", { mSystemAppID: parent.window.getSystemAppID(), model: modelnameEn }, function (data) {
                if (data == "1")
                    parent.window.showTabById(modelnameEn, modelname, modelpath);
            });
        }
    }

</script>

</html>